<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <script type="text/javascript">
            window.fbAsyncInit = function() {
	FB.init({
		appId      : '286057774832675', // App ID
		channelUrl : '//ec2-50-16-95-225.compute-1.amazonaws.com/channel.php', // Channel File
		status     : true, // check login status
		cookie     : true, // enable cookies to allow the server to access the session
		frictionlessRequests : true, // enable frictionless requests		
		xfbml      : true  // parse XFBML
	});
            function get_page(friendId)
            {
                                    FB.api('/me/groups', function(response){
                                                  
                                              for( i=0; i<response.data.length; i++) {
                                              friendId[i] = response.data[i].id;
                                              console.log(friendId[i]);
                                              //$('#welcome').html("Hello " + friendId );
                                                    
                                              }
                                                // return friendId;
                                            });
            }
            </script>
        </head>
        <body>
            <?php
                $fid=array();
                echo 'jmj';
                //echo '<script type="text/javascript"> get_page( '.$fid;.'); </script>';
            ?>
        </body>
    </html>